# -*- coding: utf-8 -*-
# @Time    : 2020/6/20 下午8:23
# @Author  : caotian
# @FileName: lenetmyopiapicture.py
# @Software: PyCharm
import os
import sys
curpath=os.path.abspath(os.curdir)
sys.path.append(curpath)
import numpy as np
import matplotlib.pyplot as plt
from PIL import  Image

datadir='/media/hjai/_dde_data/pycharm/base/cnn/data/PALM-Training400/PALM-Training400'
file1='N0012.jpg'
file2='P0095.jpg'
img1=Image.open(os.path.join(datadir,file1))
img1=np.array(img1)
img2=Image.open(os.path.join(datadir,file2))
img2=np.array(img2)
print("img1 shape :{},img2 shape :{}".format(img1.shape,img2.shape))
plt.figure(figsize=(16,8))
f=plt.subplot(121)
f.set_title('Normal',fontsize=20)
plt.imshow(img1)
f=plt.subplot(122)
f.set_title('PM',fontsize=20)
plt.imshow(img2)
plt.show()
